# -*- coding: utf-8 -*-
"""
__mktime__ = '2019/4/21'
__author__ = 'Just'
__filename__ = 'common'
公共函数
"""
import time


def get_current_time():
    """获取当前时间戳"""
    return int(time.time())


def datetime_to_time(_date):
    """将str日期转成时间戳"""
    return int(time.mktime(time.strptime(_date, '%Y-%m-%d')))
